package com.plant.address.mapper;

import com.plant.address.domain.MyAddress;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface MyAddressMapper {
    List<MyAddress> findAllAddress(MyAddress myAddress);

    int myAddressAdd(MyAddress myAddress);

    List<MyAddress> findById(Integer userId);
    @Update("update myaddress set del = 1 where id = #{id}")
    int delete(Integer id);

    int update(MyAddress myAddress);

    MyAddress findByAddId(Integer id);

    void update1(Integer userId);
}
